def input_username():
    name = input('输入用户名')
    return name

def input_password():
    password = input('输入密码')
    return password

def login():

    if input_username() == 'admin' and input_password() == '123456':

        print('登录成功')
    else:
        print('错误')

if __name__ == '__main__':
    login()